//
//  AppShareViewController.m
//  PortalWeb
//
//  Created by tokeys on 14-3-21.
//  Copyright (c) 2014年 wuxian. All rights reserved.
//

#import "AppShareViewController.h"
#import "UMSocial.h"

@interface AppShareViewController ()<UMSocialUIDelegate>{
    BOOL _hasLoad;
}

@end

@implementation AppShareViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (IBAction)share:(id)sender{
    [UMSocialSnsService presentSnsIconSheetView:self
                                         appKey:UMENG_APPKEY
                                      shareText:@"我发现了一个很好用的物流手机软件，找专线，找司机，找货源非常方便，下载地址:http://www.zhi56.cn/home/ld，发货有我更轻松！【物流百事通】"
                                     shareImage:[UIImage imageNamed:@"icon.png"]
                                shareToSnsNames:[NSArray arrayWithObjects:UMShareToWechatSession,UMShareToWechatTimeline,UMShareToSina,UMShareToTencent,UMShareToEmail,UMShareToSms,nil]
                                       delegate:self];
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
